﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WcfFlashRemoting.Example7.WcfClient
{
    class Program
    {
        static void Main(string[] args)
        {
            Example7Service.IRegistrationContract svc = new Example7Service.RegistrationContractClient("AmfBinding_IRegistrationContract");
            //Example7Service.IRegistrationContract svc = new Example7Service.RegistrationContractClient("BasicHttpBinding_IRegistrationContract");
            Console.WriteLine(svc.AddPerson(new Example7Service.Student()
            {
                FirstName = "John",
                LastName = "Smith",
                Major = "Computer Science"
            }));
            Console.WriteLine(svc.AddPerson(new Example7Service.Teacher()
            {
                FirstName = "Yang",
                LastName = "Liu",
                Department = "Computer Science"
            }));
            Console.ReadKey();
        }
    }
}
